<?php
$filtername="portal_pages_filter";


if (!getParameter("parentId")) header("Location: ".createRelativeUrl("parentId","NULL"));


if (getParameter("type")=="S"){

	
	$filterValue="and `type` in ('S')";


?>
<script type="text/javascript">



	$("#table_title").text("<?=$var_portal_sharedblocks?>");
	$("#table_title_img").attr("src","images/menu/portal_sharedblocks.png");



</script>
<?php
	
}else{
	

$filterValue="and `type` in ('P','L','B')";


}


loadfilter($filtername, $filterValue);

if (false){

if (getParameter("parentId")!=null && getParameter("parentId")!="NULL")
{
	
	$sSql="SELECT portal_pages.parentId FROM `portal_pages` WHERE portal_pages.id =".getParameter("parentId");
	$rs=$GLOBALS["conn"]->Execute($sSql);
	$id="NULL";
	if ($rs->fields["parentId"]!="") $id=$rs->fields["parentId"];
	
?>
<a href="<?php echo createRelativeUrl("filter","parentId=".$id); ?>"><img src="./images/parent.png" title="Parent" /></a>
<?php }}

?>